﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RouterControl.Whs.Wizards;
using Microsoft.HomeServer.Controls;

public static class WizardPageClientButtonTextExtensionMethods
{
    public static string ToWhsString(this WizardPageClientButtonText bt)
    {
        switch (bt)
        {
            case WizardPageClientButtonText.NoButton:
                return null;

            case WizardPageClientButtonText.Apply:
                return CommonSettings.WizardStandardButtonNameApply;

            case WizardPageClientButtonText.Back:
                return CommonSettings.WizardStandardButtonNameBack;

            case WizardPageClientButtonText.Cancel:
                return CommonSettings.WizardStandardButtonNameCancel;

            case WizardPageClientButtonText.Close:
                return CommonSettings.WizardStandardButtonNameClose;

            case WizardPageClientButtonText.Done:
                return CommonSettings.WizardStandardButtonNameDone;

            case WizardPageClientButtonText.Finish:
                return CommonSettings.WizardStandardButtonNameFinish;

            case WizardPageClientButtonText.Next:
                return CommonSettings.WizardStandardButtonNameNext;

            case WizardPageClientButtonText.Ok:
                return CommonSettings.WizardStandardButtonNameOk;

            case WizardPageClientButtonText.Refresh:
                return CommonSettings.WizardStandardButtonNameRefresh;

            case WizardPageClientButtonText.RestartLater:
                return CommonSettings.WizardStandardButtonNameRestartLater;

            case WizardPageClientButtonText.RestartNow:
                return CommonSettings.WizardStandardButtonNameRestartNow;

            case WizardPageClientButtonText.Retry:
                return CommonSettings.WizardStandardButtonNameRetry;

            default:
                throw new ArgumentException("unknown value", "bt");
        }
    }
}

